package com.jzy.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzy.common.exception.RRException;
import com.jzy.common.utils.PageUtils;
import com.jzy.gulimall.member.entity.MemberEntity;
import com.jzy.gulimall.member.vo.MemberLoginVo;
import com.jzy.gulimall.member.vo.MemberRegisterVo;
import com.jzy.gulimall.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author jzy
 * @email 1802511725@qq.com
 * @date 2020-07-11 20:15:14
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberRegisterVo memberRegisterVo);

    void checkPhoneUnique(String phone) throws RRException;

    void checkUsernameUnique(String username) throws RRException;

    MemberEntity login(MemberLoginVo memberLoginVo);

    MemberEntity login(SocialUser socialUser);
}

